package aspirecn.project3.feign;

import aspirecn.project3.request.MockData;
import aspirecn.project3.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.sql.Timestamp;

/**
 * packageName aspirecn.project3.feign
 *
 * @author 邵一宸
 * @version JDK 17
 * @className GoodServiceFeign
 * @date 2024/7/20
 * @description TODO
 */
@FeignClient(name="good-service",url="http://localhost:8004/goods")
public interface GoodServiceFeign {
    @PostMapping("/InsertPoint")
    JsonData addGoodPointCountsById(@RequestParam("id") Long id, @RequestParam("count") int counts);
}